﻿using System.Linq;
using System.Data.Linq;

namespace UniMana.Data
{
    public static class Training_SessionData
    {
        #region [An]
        public static IQueryable GetDataKeyNameStarFinishTime(this Table<Training_Session> nTraining_Session)
        {
            var values = (from t in nTraining_Session
                          select new
                          {
                              t.Training_SessionKey,
                              t.Name,
                              t.StartTime,
                              t.FinishTime
                          }).Take(3);
            return values.Distinct();
        }
        #endregion
    }
}
